home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / abstract.swf / scripts / DefineSprite_419 / frame_1 / DoAction.as
Text File  |  2013-04-24  |  912b  |  27 lines

  1. sfxButton.onRollOver = musicButton.onRollOver = backButton.onRollOver = function()
  2. {
  3.    _root.playSFX("menuRollOver");
  4.    this.filters = [new flash.filters.GlowFilter(12303359,1,6,6,2,3,false,false)];
  5. };
  6. sfxButton.onRollOut = sfxButton.onReleaseOutside = backButton.onRollOut = backButton.onReleaseOutside = musicButton.onRollOut = musicButton.onReleaseOutside = function()
  7. {
  8.    this.filters = [];
  9. };
  10. sfxButton.onRelease = function()
  11. {
  12.    _root.sfxOn = !_root.sfxOn;
  13.    _root.toggleSFX(_root.sfxOn);
  14.    this.statusString.text = _root.sfxOn != true ? "SFX: OFF" : "SFX: ON";
  15. };
  16. musicButton.onRelease = function()
  17. {
  18.    _root.musicOn = !_root.musicOn;
  19.    _root.toggleMusic(_root.musicOn);
  20.    this.statusString.text = _root.musicOn != true ? "MUSIC: OFF" : "MUSIC: ON";
  21. };
  22. backButton.onRelease = function()
  23. {
  24.    _root.optionsScreen._x = -475;
  25.    _root.gamePausedScreenCampaign._x = 300;
  26. };
  27.